package com.itheima.stock.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "id-workers.config")
public class IdWorkersProperties {

    /**
     * 机器id
     */
    private long machineId;

    /**
     * 数据中心id
     */
    private long datacenterId;



}
